#!/bin/ksh

mpstat 1 10 >3.dat

while read pid
do
  echo $pid
done < 3.dat
